//
//  Point.cpp
//  L10Operator
//
//  Created by ai-nixs on 2017/10/29.
//  Copyright © 2017年 nixinsheng. All rights reserved.
//

#include "Point.h"
//自定义构造实现
Point::Point(int x,int y){
    this->x = x;
    this->y = y;
}


int Point::getX(){
    return this->x;
}

int Point::getY(){
    return this->y;
}

//重载方法实现
void Point::add(Point p){
    add(p.getX(), p.getY());
}
void Point::add(int x,int y){
    this->x+=x;
    this->y+=y;
}


void Point::operator+=(Point p){
    add(p);
}
